import request from '@/utils/request'
function getUrl(url) { return '/api/' + url }

//编辑
export function updateInDynamicConfig(data){
    return request({
        url:getUrl("admin/inDynamicConfig/updateInDynamicConfig"),
        method:"post",
        data
    })
}

//获取某个参数
export function getInDynamicConfigVo(data){
    return request({
        url:getUrl("admin/inDynamicConfig/getInDynamicConfigVo"),
        method:"post",
        data
    })
}

//获取全部参数，按业务类型封装
export function getInDynamicConfigMap(data){
    return request({
        url:getUrl("admin/inDynamicConfig/getInDynamicConfigMap"),
        method:"post",
        data
    })
}

//获取参数配置
export function getConfig(data){
    return request({
        url:getUrl("admin/inDynamicConfig/getConfig"),
        method:"post",
        data
    })
}

//根据key保存值
export function updateConfig(data){
    return request({
        url:getUrl("admin/inDynamicConfig/updateConfig"),
        method:"post",
        data
    })
}